package com.sale.goods.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import com.sale.goods.domain.GoodsNuclear;
import com.sale.goods.domain.dto.GoodsNuclearDto;
import com.sale.goods.domain.vo.GoodsNuclearVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description 核销单
 * @Date 23-08-14
 * @Author hl
 **/
public interface GoodsNuclearMapper extends BaseMapperPlus<GoodsNuclearMapper, GoodsNuclear, GoodsNuclear> {

    /**
     * 核销单查询列表 分页
     * @param build,buildQueryWrapper
     * @return   List<GoodsCollectionDto>
     */
    Page<GoodsNuclearDto> selectNuclearList(@Param("page") Page<GoodsNuclearVo> build,@Param(Constants.WRAPPER) Wrapper<GoodsNuclearVo> buildQueryWrapper);

    /**
     * 结账反结账（财务模块单据查询）
     */
    List<GoodsNuclearDto> getQClosingDocument(String time);

    /**
     * 结账反结账（财务模块单据查询）
     */
    List<GoodsNuclearDto> getRClosingDocument(String time);
}
